fix(providers): drop deprecated temperature capability from claude-sonnet-5#5328
Conversation
…nnet-5
Claude Sonnet 5 rejects the temperature parameter with a 400 ("`temperature` is deprecated for this model"), verified against the live Anthropic API. The model entry exposed temperature: { min: 0, max: 1 }, so supportsTemperature() returned true and the Anthropic request builder sent temperature whenever thinking was disabled, breaking those runs. Remove the capability (matching Opus 4.7/4.8, which omit it for the same reason) so temperature is never sent for Sonnet 5. Add a supportsTemperature regression assertion.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview The A Reviewed by Cursor Bugbot for commit c763000. Configure here. |
Greptile SummaryThis PR updates Claude Sonnet 5 temperature capability handling. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "fix(providers): drop deprecated temperat..." | Re-trigger Greptile |
Summary
temperatureparameter with a 400 (`temperature` is deprecated for this model) — verified against the live Anthropic API.claude-sonnet-5model entry exposedtemperature: { min: 0, max: 1 }, sosupportsTemperature()returnedtrueand the Anthropic request builder senttemperaturewhenever thinking was disabled — breaking those runs.temperatureis never sent for Sonnet 5.supportsTemperatureregression assertion forclaude-sonnet-5.Verification (live Anthropic API)
temperaturetemperatureeffort:high, no temp)output_formatjson_schema)Type of Change
Testing
providers/utils.test.ts,providers/models.test.ts)Checklist